package com.ws.rs;

import java.util.List;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Component;

import com.ws.model.Users;
import com.ws.persistence.UsersMapper;

@Component("usersRService")
@Path("/users")
public class UsersRService {
	@Resource
	private UsersMapper usersMapper;
	
	@GET
    @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    @Path("/get")
	public List<Users> getListUsers(){
 		return usersMapper.getUsersList();
	}
}
